package org.example.auth.service.impl;


import com.example.common.result.PageBean;
import com.example.model.emp.pojo.Employee;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.example.auth.mapper.EmpMapper;
import org.example.auth.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceimpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;


    /**
     * 登录获取员工信息
     * @param employee
     * @return
     */
    @Override
    public Employee getByUsernameAndPassword(Employee employee) {
        Employee emp = empMapper.getByUsernameAndPassword(employee);
        return emp;
    }

}
